@model University.Models.Group

@{
    ViewBag.Title = "Details";
}

<h2>Details</h2>

<fieldset>
    <legend>Group</legend>

    <div class="display-label">Name</div>
    <div class="display-field">@Model.Name</div>

    <div class="display-label">Type</div>
    <div class="display-field">@Model.Type</div>

    <div class="display-label">Language</div>
    <div class="display-field">@Model.Language</div>

    <div class="display-label">YearStart</div>
    <div class="display-field">@String.Format("{0:g}", Model.YearStart)</div>

    <div class="display-label">YearEnd</div>
    <div class="display-field">@String.Format("{0:g}", Model.YearEnd)</div>

    <div class="display-label">Domain</div>
    <div class="display-field">@Html.DisplayTextFor(_ => Model.Domain).ToString()</div>

    <div class="display-label">Users</div>
    <div class="display-field">@(Model.Users == null ? "None" : Model.Users.Count.ToString())</div>

    <div class="display-label">Schedules</div>
    <div class="display-field">@(Model.Schedules == null ? "None" : Model.Schedules.Count.ToString())</div>
</fieldset>
<p>
    @Html.ActionLink("Edit", "Edit", new { id=Model.GroupId }) |
    @Html.ActionLink("Back to List", "Index")
</p>


